home *** CD-ROM | disk | FTP | other *** search
- Path: god.bel.alcatel.be!nlev00!barnhoorn
- From: barnhoorn@nlev00 ()
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Ceck out this bug. What the *** is SASC/6.56 doing?
- Date: 11 Mar 1996 12:49:14 GMT
- Organization: Alcatel Bell
- Distribution: world
- Message-ID: <4i17ga$doo@btmpjg.god.bel.alcatel.be>
- References: <1120.6643T91T406@login.eunet.no> <4hvk1f$o0c@zeus.central.ntua.gr> <874.6644T381T2315@login.eunet.no>
- Reply-To: barnhoorn@nlev00 ()
- NNTP-Posting-Host: 138.203.178.61
- X-Newsreader: mxrn 6.18-10
-
-
- Path: nlev00!barnhoorn
- Newsgroups: comp.sys.amiga.programmer
- From: barnhoorn@nlev00 ()
- Distribution: world
- X-Newsreader: mxrn 6.18-10
- References: <1120.6643T91T406@login.eunet.no> <4hvk1f$o0c@zeus.central.ntua.gr> <874.6644T381T2315@login.eunet.no>
- Reply-To: barnhoorn@nlev00 ()
- Organization: Alcatel Bell
- Subject: Re: Ceck out this bug. What the *** is SASC/6.56 doing?
-
- In article <874.6644T381T2315@login.eunet.no>, patrick.hanevold@login.eunet.no (Patrick Hanevold) writes:
- >
- >>>#define ScreenWidth 160
- >>>#define ScreenHeight 128
- >>>void main(void)
- >>>{
- >>> int x,y,n;
- >>> UBYTE Buffer[ScreenWidth];
- >>> ULONG Palette[256*3+2]; // This one causes the bug.
- >>> struct Screen *Scr=OpenScreenTags(NULL,
- >>> SA_Width, 320,
- >>> SA_Height, 256,
- >>> SA_Depth, 8,
- >>> TAG_END);
- >
- >>Hmm, that Palette array holds 3080 bytes on the stack.
- >>My guess is that you screw up your stack. Try making the stack bigger or
- >>declare the array as global, out of the main function.
- >
- >Tryed "Stack check" and all that. No difference.
- >Anyway, the default stack is 4K isnt it?
- >Cant think of anything using that additional 1K.
- >Dont want it global. Allocate it myself now.
- >
- OpenScreenTags() need stack too!! Together with the already used stack
- by _main, and the 3252 bytes of main(), you only have about 800 bytes
- left for OpenScreenTags(), might be too small. Stackcheck will not
- find this, because stackcheck does not know the stack-usage of
- OpenScreenTags().
- --
- ---------------------------------------------------------------------------
- Jaco Barnhoorn barnie@xs4all.nl
- Software Test Engineer barnhoorn%nlev00@btmv56.se.bel.alcatel.be
- Alcatel Telecom Systems
- Rijswijk, The Netherlands
- ---------------------------------------------------------------------------
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-